package com.pig4cloud.pig.module.api.entity.wx;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 用户的消费券列对象 user_voucher
 *
 * @author ruoyi
 * @date 2022-06-07
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("user_voucher")
public class UserVoucher implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 消费券的id
     */
    private Long voucherId;

    /**
     * 消费券类型
     */
    private String voucherType;

    /**
     * 消费券名称
     */
    private String voucherName;

    /**
     * 剩余的消费券金额
     */
    private String voucherMoney;

    /**
     * 冻结金额
     */
    private String voucherFreeze;

	/**
	 * 每次使用可抵扣的百分比  默认 20%
	 */
	private Double useRate;
}
